package day08_Extends.demo06_Extends;

public class Student extends Person {
    public Student() {
        super();
        System.out.println("子类的无参构造");
    }
   //继承中  子类构造中默认包含父类的无参构造
   //默认有super();
   //只能在构造中的第一行
    public Student(int i){
        super(i);
        System.out.println("子类的有参构造");
    }
}
